import 'package:flutter/cupertino.dart';

/// 自定义AppBar
class CustomAppBar extends StatelessWidget implements PreferredSizeWidget {
  final Widget child;
  final double barHeight;

  const CustomAppBar(
      {super.key, required this.child, this.barHeight = 52.0});

  @override
  Size get preferredSize => Size.fromHeight(barHeight);

  @override
  Widget build(BuildContext context) => child;
}
